class ListenList2Scene extends Scene{

    private returnBtn:eui.Image;
    private gdGroup:eui.DataGroup;
    private num:number;

    public constructor() {
		super();
	}
    public onSkinLoaded(){
        this.num=9;
        this.returnBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.btnHandler, this);
        var sourceArr:any[]=[];
        for(var i=0;i<this.num;i++){
            sourceArr.push({i});
        }
        var myCollection:eui.ArrayCollection=new eui.ArrayCollection(sourceArr);
        this.gdGroup.dataProvider=myCollection;
        this.gdGroup.itemRenderer=ListenGd2Render;
        
    }
    private btnHandler(evt: egret.TouchEvent) {


		let btnFocused = evt.currentTarget;
		switch (btnFocused) {
			case this.returnBtn:
				SceneManager.instance.removeScene(this);
                
                break;
			
            
		}
	}
}